package com.ruoyi.project.good.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;

/**
 * 商品规格对象 good_spec
 * 
 * @author ruoyi
 * @date 2020-07-01
 */
public class GoodSpec extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 商品规格表ID */
    private Long specId;

    /** 商品ID */
    @Excel(name = "商品ID")
    private Long goodsId;

    /** 类型名称 */
    @Excel(name = "类型名称")
    private String specName;

    /** 规格 */
    @Excel(name = "规格")
    private String specAttribute;

    /**
     * 用于标识当前规格与类型绑定信息
     * 第一个类型           1
     * 第一个类型下的规格    1
     */
    private Integer typeNum;

    /** 数量 */
    @Excel(name = "数量")
    private Long specNum;

    /** 价格 */
    @Excel(name = "价格")
    private Long price;

    /** 父亲级别id（0表示父级） */
    @Excel(name = "父亲级别id", readConverterExp = "0=表示父级")
    private Long parentId;

    /** 拼团价格 */
    @Excel(name = "拼团价格")
    private Long assemblePrice;

    /** 拼团数量 */
    @Excel(name = "拼团数量")
    private Long assembleNum;

    /** 秒杀价格 */
    @Excel(name = "秒杀价格")
    private Long killPrice;

    /** $column.columnComment */
    @Excel(name = "秒杀价格")
    private Long killNum;

    /** 1删除 */
    @Excel(name = "1删除")
    private Integer isDel;

    public Integer getTypeNum() {
        return typeNum;
    }

    public void setTypeNum(Integer typeNum) {
        this.typeNum = typeNum;
    }

    public void setSpecId(Long specId)
    {
        this.specId = specId;
    }

    public Long getSpecId() 
    {
        return specId;
    }
    public void setGoodsId(Long goodsId) 
    {
        this.goodsId = goodsId;
    }

    public Long getGoodsId() 
    {
        return goodsId;
    }
    public void setSpecName(String specName) 
    {
        this.specName = specName;
    }

    public String getSpecName() 
    {
        return specName;
    }
    public void setSpecAttribute(String specAttribute) 
    {
        this.specAttribute = specAttribute;
    }

    public String getSpecAttribute() 
    {
        return specAttribute;
    }
    public void setSpecNum(Long specNum) 
    {
        this.specNum = specNum;
    }

    public Long getSpecNum() 
    {
        return specNum;
    }
    public void setPrice(Long price) 
    {
        this.price = price;
    }

    public Long getPrice() 
    {
        return price;
    }
    public void setParentId(Long parentId) 
    {
        this.parentId = parentId;
    }

    public Long getParentId() 
    {
        return parentId;
    }
    public void setAssemblePrice(Long assemblePrice) 
    {
        this.assemblePrice = assemblePrice;
    }

    public Long getAssemblePrice() 
    {
        return assemblePrice;
    }
    public void setAssembleNum(Long assembleNum) 
    {
        this.assembleNum = assembleNum;
    }

    public Long getAssembleNum() 
    {
        return assembleNum;
    }
    public void setKillPrice(Long killPrice) 
    {
        this.killPrice = killPrice;
    }

    public Long getKillPrice() 
    {
        return killPrice;
    }
    public void setKillNum(Long killNum) 
    {
        this.killNum = killNum;
    }

    public Long getKillNum() 
    {
        return killNum;
    }
    public void setIsDel(Integer isDel) 
    {
        this.isDel = isDel;
    }

    public Integer getIsDel() 
    {
        return isDel;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("specId", getSpecId())
            .append("goodsId", getGoodsId())
            .append("specName", getSpecName())
            .append("specAttribute", getSpecAttribute())
            .append("specNum", getSpecNum())
            .append("price", getPrice())
            .append("parentId", getParentId())
            .append("assemblePrice", getAssemblePrice())
            .append("assembleNum", getAssembleNum())
            .append("killPrice", getKillPrice())
            .append("killNum", getKillNum())
            .append("createTime", getCreateTime())
            .append("isDel", getIsDel())
            .toString();
    }
}
